<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="lijun; 67086071; zwlijun@qq.com" />
<title>RIA Client API - BY 小网</title>
<link href="css/api.css" type="text/css" rel="stylesheet" />
</head>

<body>
  <ins>此文档描述Slide的方法及属性</ins>
  <div class="nav">
    <a href="#Slide">Slide()</a>
    <a href="#createPanel">createPanel()</a>
    <a href="#createElement">createElement()</a>
    <a href="#showPanel">showPanel()</a>
  </div>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">Slide构造方法<a name="Slide"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>构造函数</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>var slide = new Slide(id, element, bigImage, smallImage, type, interval);</td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>构造函数</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
var slide = new Slide(0, 
                      {width:550, height:243}, 
                      {width:343, height:243}, 
                      {width:54, height:34}, 
                      0, 
                      4000
                     );
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">createPanel方法<a name="createPanel"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>创建面板</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>slide.createPanel(size, className);</td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>创建面板</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
slide.createPanel(5);
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">createElement方法<a name="createElement"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>创建元素</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>slide.createElement(index, bigImageSrc, smallImageSrc, heading, subheading, link, target);</td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>创建元素</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
slide.createElement(0, 
                    "images/_tmp/1.jpg", 
                    "images/_tmp/1.jpg", 
                    "深圳·第九届高交会", 
                    "联想接待MM", 
                    "about:blank", 
                    "_blank"
                   );
</pre>
        </td>
      </tr>
    </tbody>
  </table>
  <table width="600" cellspacing="1" cellpadding="1" border="0">
    <tbody>
      <tr>
        <th colspan="2">showPanel方法<a name="showPanel"></a></th>
      </tr>
      <tr>
        <td class="label">作&nbsp;&nbsp;&nbsp;用</td>
        <td>显示面板</td>
      </tr>
      <tr>
        <td class="label">基本语法</td>
        <td>slide.showPanel(target);</td>
      </tr>
      <tr>
        <td class="label">说&nbsp;&nbsp;&nbsp;明</td>
        <td>显示面板</td>
      </tr>
      <tr>
        <td class="label">示&nbsp;&nbsp;&nbsp;例</td>
        <td>
<pre>
slide.showPanel("VSlide");
</pre>
        </td>
      </tr>
    </tbody>
  </table>
</body>
</html>